package springCloud.controller;

import com.luoqiu.entities.Payment;
import com.luoqiu.entities.Result;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import springCloud.service.OrderFeignService;

import javax.annotation.Resource;

/**
 * @author 洛秋y
 * @date 2020/11/20 10:38
 */
@RestController
public class OrderController {

    @Resource
    private OrderFeignService orderFeignService;

    @GetMapping(value = "/feign/get")
    public Result<Payment> get() {
        return orderFeignService.get();
    }
}
